#pragma once
#include<stdio.h>
#include<stdbool.h>
#include<stdlib.h>
#include<assert.h>
typedef struct HPTypeDate {

	
	int* a;
	int capacity;
	int size;



}HP;

void heapInit(HP* ps);
void heapPush(HP* ps,int a);
void heapDestroy(HP* ps);
void AdjustUp(int* ps, int child);
void HeapPrint(HP* ps);
void heapjustDow(HP* ps, int n, int parent);
//bool HeapEmptry(HP* ps);
//void  HeapPop(HP* ps);
//int HeapTop(HP* ps);
void HeapPop(HP* php);
int HeapTop(HP* php);
bool HeapEmpty(HP* php);